package com.groupbuying.storeinternal.service;

import com.groupbuying.storeinternal.domain.StoreOpexRuleRelDO;
import com.groupbuying.storeinternal.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 商户、运营规则关联表
 * 
 * @author ywxd
 * @email yuwenxiaodong@126.com
 * @date 2019-04-17 10:54:05
 */
public interface StoreOpexRuleRelService {

	List<StoreOpexRuleRelDO> list(Map<String, Object> map);

	StoreOpexRuleRelDO get(Integer relId);
	
	int count(Map<String, Object> map);
	
	int save(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int update(StoreOpexRuleRelDO storeOpexRuleRel);
	
	int remove(Integer relId);
	
	int batchRemove(Integer[] relIds);

	/**
	 * 更新指定门店的规则
	 * */
	R pushPreOpexToMaster(String storeUuid);

	/**
	 * 批量更新门店的规则
	 * */
	R batchPushPreOpexToMaster();

	/**
	 * 根据id 获取优惠规则
	 * @param storeID
	 * @return
	 */
	String getOpexRuleByStoreID(String storeID);
}
